package com.jane.gzzb;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.webkit.WebView;

public class HostHeadLinesActivity extends AppCompatActivity {
    private WebView mWebView;
    private String url;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_host_head_lines);
        initView();
        initData();
    }

    private void initData() {
        Intent intent=getIntent();
        url=intent.getStringExtra("url");
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.loadUrl(url);
    }

    private void initView() {
        mWebView= (WebView) findViewById(R.id.host_head_main_webView);
    }

    public void onClick(View view) {
        if (view.getId()==R.id.btn_back){
            finish();
        }
    }
}
